package com.chapter13.MyCollection.MySet.MyHashSet;

import java.util.HashSet;

public class DeepHashSet {
    public static void main(String[] args) {
        HashSet<Student> hashSet = new HashSet<Student>();
        hashSet.add(new Student(1,"zhangsan"));
        hashSet.add(new Student(2,"lisi"));
        hashSet.add(new Student(3,"zhangsan"));
        hashSet.add(new Student(1,"zhangsan"));
        for (Student s:hashSet){
            System.out.println(s);
        }

    }
}
